package org.ectar.papi.event
{
	import flash.events.Event;
	
	public class GDataEvent extends Event
	{
		public static const COMMENT_DELETED:String = "COMMENT_DELETED";
		public static const UNABLE_TO_SEND:String = "UNABLE_TO_SEND";
		public static const COMMENT_ADDED:String = "COMMENT_ADDED"
		public static const ALBUM_ADDED:String = "ALBUM_ADDED"
		public static const ALBUM_DELETED:String = "ALBUM_DELETED";		
		
		public static const IO_ERROR:String = "IO_ERROR"
		public static const NOT_AUTHENTICATED:String = "NOT_AUTHENTICATED";		
		
		private var _result:Object = null;
		
		public function GDataEvent(type:String, result:Object = null, bubbles:Boolean = false,cancelable:Boolean = false) {
			super(type,bubbles,cancelable);
			this.result = result;
		}
		
		public function set result(r:Object):void {
			this._result = r;
		}
		
		public function get result():Object {
			return _result;
		}
	}
}